# -*- coding: utf-8 -*-
"""
Created on Sun Sep 19 21:37:52 2021

@author: 刘长奇-2019300677
"""
import numpy as np
xs=np.array([[3,4,2],[5,3,4],[8,2,7]])#输入系数矩阵
result=np.array([[10],[14],[20]])#输入结果列向量
ni=np.linalg.inv(xs)#矩阵求逆
final=np.matrix(ni)*np.matrix(result)#最终结果
print(final)
